#
# $Id: Makefile.am,v 1.2 2006/02/02 14:46:04 jurgenv Exp $
#

noinst_SCRIPTS=compiler.sh wrap-compiler.tcl
noinst_PROGRAMS=Pico-tr

EXTRA_DIST=Pico-tr.trm.tbl compiler.sh.src compiler.tb.src wrap-compiler.tcl.src

Pico_tr_SOURCES=Pico-tr.c
Pico_tr_LDADD = -L${META}/lib -lasc-support-me -lASFME -lsglr  -lmept -lATerm -lATB -ltide-adapter -lErrorAPI -lPTMEPT 

INCLUDES=-I${META}/include -DASF_MAIN -DASF_WITH_ANNOS

pkgdata_DATA=compiler.tb

compiler.sh: compiler.sh.src
	sed 's@__TOP__@$(TOP)@g;s@__META__@$(META)@g' < $< > $@
	chmod +x $@
wrap-compiler.tcl: wrap-compiler.tcl.src
	sed 's@__TOP__@$(TOP)@g;s@__META__@$(META)@g' < $< > $@

compiler.tb: compiler.tb.src
	sed 's@__TOP__@$(TOP)@g;s@__META__@$(META)@g;s@__TOOLBUS__@$(META)@g;' < $< > $@
